Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add external URL endpoint options for the console (close #2824) #3570

Closed
wants to merge 31 commits into from

Conversation

ashishra0
Copy link
Contributor

@ashishra0 ashishra0 commented Dec 19, 2019

Description

This PR adds two external URL endpoint options for the Hasura console.
Currently, There are no options configured.
Also, all requests going through CLI must be protected by the access key.

Affected components

  • Console
  • CLI

Related Issues

#2824

Solution and Design

Add a flag each for external server endpoint and external cli endpoint.
Add a check for access key in the request body.

@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Hey @ashishra0, thanks for your PR!

One of my human friends will review this PR and get back to you as soon as possible.

Stay awesome! 😎

@netlify
Copy link

netlify bot commented Dec 19, 2019

Deploy preview for hasura-docs ready!

Built with commit fa0be03

https://deploy-preview-3570--hasura-docs.netlify.com

@ashishra0 ashishra0 changed the title Console issue #2824 Add external URL endpoint options for the console Dec 19, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 6fb6cff deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-6fb6cffd

@ashishra0 ashishra0 changed the title Add external URL endpoint options for the console Add external URL endpoint options for the console (close #2824) Dec 25, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 86674ec deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-86674ecf

@hasura-bot
Copy link
Contributor

Review app for commit 320050c deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-320050c3

cli/commands/console.go Outdated Show resolved Hide resolved
@hasura-bot
Copy link
Contributor

Review app for commit 2902c5d deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-2902c5d6

@hasura-bot
Copy link
Contributor

Review app for commit 9072a91 deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-9072a916

@shahidhk shahidhk added c/cli Related to CLI c/console Related to console labels Dec 27, 2019
@hasura-bot
Copy link
Contributor

Review app for commit f4e6b4b deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-f4e6b4b7

@kolharsam kolharsam requested review from beerose and scriptonist and removed request for rikinsk July 15, 2020 08:33
Comment on lines +133 to +137
// FIXME: My Router struct
r := &cRouter{
g,
t,
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scriptonist I'm marking 4 FIXME comments that I need help with. Basically wanted to know if there are alternate structures or methods that need to be used in order to get this PR up to speed.

Comment on lines +303 to +306
// FIXME: DoAssetExist
if !util.DoAssetExist("assets/" + assetsVersion + "/console.html") {
assetsVersion = "latest"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second one.

Comment on lines +309 to +310
// FIXME: LoadTemplates
templateRender, err := util.LoadTemplates("assets/"+assetsVersion+"/", "console.html")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Third one

Comment on lines +258 to +261
// FIXME
host := getFilePath(dir)
c.Set("filedir", host)
c.Next()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last one

@hasura-bot
Copy link
Contributor

Review app for commit a146d85 deployed to Heroku: https://hge-ci-pull-3570.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3570-a146d85b

Copy link
Contributor

@kolharsam kolharsam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@beerose you can review the changes on the console side

@thinknirmal
Copy link

Are there any progresses with this one? This is an important feature, especially in a multi-developer setup where schema changes must be tracked centrally.

@joanrodriguez
Copy link

Will this ever get merged? I need it too...

@srcrip
Copy link

srcrip commented Mar 27, 2021

What's the status on this? A lot of people would really appreciate this merged in

@dvasdekis
Copy link

Hi all, could you please approve this?? We are waiting for this feature in Userland

@CLAassistant
Copy link

CLAassistant commented Oct 1, 2021

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
3 out of 4 committers have signed the CLA.

✅ beerose
✅ ashishra0
✅ shahidhk
❌ Sameer Kolhar


Sameer Kolhar seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@m-Bilal
Copy link
Member

m-Bilal commented May 2, 2023

Hi @ashishra0 , Thank you for raising this PR!

We recently merged a change that allows the CLI to set a custom HGE endpoint for the console (more details). Could you please tell me how much of your usecase is solved by that?

@m-Bilal m-Bilal closed this May 16, 2023
@hasura-bot
Copy link
Contributor

Beep boop! 🤖

Hey @ashishra0!

Sorry that your PR wasn’t merged.

Do take a look at any of the other open issues to see if you’d like to take something up! We’re around on Discord if you have any questions 😄

@LeulAria
Copy link

what is the solution here is it merge or ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/cli Related to CLI c/console Related to console s/wip Status: This issue is a work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.